﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001015 RID: 4117
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournFormulaInfo : IMessage<RogueTournFormulaInfo>, IMessage, IEquatable<RogueTournFormulaInfo>, IDeepCloneable<RogueTournFormulaInfo>, IBufferMessage
	{
		// Token: 0x17003411 RID: 13329
		// (get) Token: 0x0600B82F RID: 47151 RVA: 0x001F0F47 File Offset: 0x001EF147
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournFormulaInfo> Parser
		{
			get
			{
				return RogueTournFormulaInfo._parser;
			}
		}

		// Token: 0x17003412 RID: 13330
		// (get) Token: 0x0600B830 RID: 47152 RVA: 0x001F0F4E File Offset: 0x001EF14E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournFormulaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003413 RID: 13331
		// (get) Token: 0x0600B831 RID: 47153 RVA: 0x001F0F60 File Offset: 0x001EF160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournFormulaInfo.Descriptor;
			}
		}

		// Token: 0x0600B832 RID: 47154 RVA: 0x001F0F67 File Offset: 0x001EF167
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournFormulaInfo()
		{
		}

		// Token: 0x0600B833 RID: 47155 RVA: 0x001F0F7C File Offset: 0x001EF17C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournFormulaInfo(RogueTournFormulaInfo other) : this()
		{
			this.gameFormulaInfo_ = other.gameFormulaInfo_.Clone();
			this.formulaTypeValue_ = ((other.formulaTypeValue_ != null) ? other.formulaTypeValue_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B834 RID: 47156 RVA: 0x001F0FCD File Offset: 0x001EF1CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournFormulaInfo Clone()
		{
			return new RogueTournFormulaInfo(this);
		}

		// Token: 0x17003414 RID: 13332
		// (get) Token: 0x0600B835 RID: 47157 RVA: 0x001F0FD5 File Offset: 0x001EF1D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FormulaInfo> GameFormulaInfo
		{
			get
			{
				return this.gameFormulaInfo_;
			}
		}

		// Token: 0x17003415 RID: 13333
		// (get) Token: 0x0600B836 RID: 47158 RVA: 0x001F0FDD File Offset: 0x001EF1DD
		// (set) Token: 0x0600B837 RID: 47159 RVA: 0x001F0FE5 File Offset: 0x001EF1E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaTypeValue FormulaTypeValue
		{
			get
			{
				return this.formulaTypeValue_;
			}
			set
			{
				this.formulaTypeValue_ = value;
			}
		}

		// Token: 0x0600B838 RID: 47160 RVA: 0x001F0FEE File Offset: 0x001EF1EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournFormulaInfo);
		}

		// Token: 0x0600B839 RID: 47161 RVA: 0x001F0FFC File Offset: 0x001EF1FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournFormulaInfo other)
		{
			return other != null && (other == this || (this.gameFormulaInfo_.Equals(other.gameFormulaInfo_) && object.Equals(this.FormulaTypeValue, other.FormulaTypeValue) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B83A RID: 47162 RVA: 0x001F1050 File Offset: 0x001EF250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.gameFormulaInfo_.GetHashCode();
			if (this.formulaTypeValue_ != null)
			{
				num ^= this.FormulaTypeValue.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B83B RID: 47163 RVA: 0x001F109A File Offset: 0x001EF29A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B83C RID: 47164 RVA: 0x001F10A2 File Offset: 0x001EF2A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B83D RID: 47165 RVA: 0x001F10AC File Offset: 0x001EF2AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.formulaTypeValue_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.FormulaTypeValue);
			}
			this.gameFormulaInfo_.WriteTo(ref output, RogueTournFormulaInfo._repeated_gameFormulaInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B83E RID: 47166 RVA: 0x001F10FC File Offset: 0x001EF2FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.gameFormulaInfo_.CalculateSize(RogueTournFormulaInfo._repeated_gameFormulaInfo_codec);
			if (this.formulaTypeValue_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FormulaTypeValue);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B83F RID: 47167 RVA: 0x001F1150 File Offset: 0x001EF350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournFormulaInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.gameFormulaInfo_.Add(other.gameFormulaInfo_);
			if (other.formulaTypeValue_ != null)
			{
				if (this.formulaTypeValue_ == null)
				{
					this.FormulaTypeValue = new FormulaTypeValue();
				}
				this.FormulaTypeValue.MergeFrom(other.FormulaTypeValue);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B840 RID: 47168 RVA: 0x001F11B5 File Offset: 0x001EF3B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B841 RID: 47169 RVA: 0x001F11C0 File Offset: 0x001EF3C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.gameFormulaInfo_.AddEntriesFrom(ref input, RogueTournFormulaInfo._repeated_gameFormulaInfo_codec);
					}
				}
				else
				{
					if (this.formulaTypeValue_ == null)
					{
						this.FormulaTypeValue = new FormulaTypeValue();
					}
					input.ReadMessage(this.FormulaTypeValue);
				}
			}
		}

		// Token: 0x04004A4E RID: 19022
		private static readonly MessageParser<RogueTournFormulaInfo> _parser = new MessageParser<RogueTournFormulaInfo>(() => new RogueTournFormulaInfo());

		// Token: 0x04004A4F RID: 19023
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004A50 RID: 19024
		public const int GameFormulaInfoFieldNumber = 13;

		// Token: 0x04004A51 RID: 19025
		private static readonly FieldCodec<FormulaInfo> _repeated_gameFormulaInfo_codec = FieldCodec.ForMessage<FormulaInfo>(106U, FormulaInfo.Parser);

		// Token: 0x04004A52 RID: 19026
		private readonly RepeatedField<FormulaInfo> gameFormulaInfo_ = new RepeatedField<FormulaInfo>();

		// Token: 0x04004A53 RID: 19027
		public const int FormulaTypeValueFieldNumber = 8;

		// Token: 0x04004A54 RID: 19028
		private FormulaTypeValue formulaTypeValue_;
	}
}
